package collection;

import exception.CollectionEmptyException;

public interface IDeque<E> {

	public boolean isEmpty();
	
	public int size();
	
	public E getFirst() throws CollectionEmptyException;
	
	public E getLast() throws CollectionEmptyException;
	
	public void addFirst(E element);
	
	public void addLast(E element);
	
	public E removeFirst() throws CollectionEmptyException;
	
	public E removeLast() throws CollectionEmptyException;
}
